.class Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;
.super Ljava/lang/Object;
.source "CommunityAppGridFragment.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/CommunityAppGridFragment;->requestCommunityDetail(Lcom/brixd/niceapp/community/model/CommunityAppModel;I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

.field final synthetic val$position:I


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/CommunityAppGridFragment;I)V
    .registers 3
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    .prologue
    .line 210
    iput-object p1, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    iput p2, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;->val$position:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 4
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 228
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/CommunityAppGridFragment;->hideDialog()V

    .line 229
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppGridFragment;->mHandler:Landroid/os/Handler;
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppGridFragment;->access$300(Lcom/brixd/niceapp/community/CommunityAppGridFragment;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3$1;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3$1;-><init>(Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 236
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 210
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 7
    .param p1, "result"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    .line 215
    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/CommunityAppGridFragment;->hideDialog()V

    .line 216
    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/CommunityAppGridFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    if-eqz v2, :cond_3d

    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/CommunityAppGridFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/FragmentActivity;->isFinishing()Z

    move-result v2

    if-nez v2, :cond_3d

    .line 217
    invoke-static {p1}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->parseAppModel(Lorg/json/JSONObject;)Lcom/brixd/niceapp/community/model/CommunityAppModel;

    move-result-object v0

    .line 219
    .local v0, "appModel":Lcom/brixd/niceapp/community/model/CommunityAppModel;
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/CommunityAppGridFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 220
    .local v1, "intent":Landroid/content/Intent;
    const-string v2, "AppModel"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 221
    const-string v2, "ModelPosition"

    iget v3, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;->val$position:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 222
    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    const/16 v3, 0xa

    invoke-virtual {v2, v1, v3}, Lcom/brixd/niceapp/community/CommunityAppGridFragment;->startActivityForResult(Landroid/content/Intent;I)V

    .line 224
    .end local v0    # "appModel":Lcom/brixd/niceapp/community/model/CommunityAppModel;
    .end local v1    # "intent":Landroid/content/Intent;
    :cond_3d
    return-void
.end method
